package org.linlinjava.litemall.admin.web2.order.resp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.linlinjava.litemall.core.util.DateTimeUtil;
import org.linlinjava.litemall.db.domain.TOrder;

/**
 * 已发货
 */
@ApiModel
public class OResp5 extends OResp {

    @ApiModelProperty("发货时间")
    private String sendTime;

    @Override
    protected void push0(TOrder order) {
        if (order.getPayTime() != null)
            this.sendTime = order.getPayTime().format(DateTimeUtil.format);
    }

    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }
}
